﻿using System;
using System.Collections.Generic;
using System.Text;
using AspNetCs.Model;
using System.Data;
namespace AspNetCs.IDAL
{
    public interface ICemetery_AddNumId
    {
        Cemetery_AddNumId_Model GetModel(DataRow dr);
        int Add(Cemetery_AddNumId_Model md);
        int Delete(string filter);
        /// <summary>
        /// 根据条件提取数据
        /// </summary>
        /// <param name="filter"></param>
        /// <returns></returns>
        List<Cemetery_AddNumId_Model> GetData(string filter);
        /// <summary>
        /// 返回DataTable
        /// </summary>
        /// <param name="filter"></param>
        /// <returns></returns>
        DataTable GetDataTable(string filter);
        /// <summary>
        /// 根据条件更新
        /// </summary>
        /// <param name="Upfilter">更新的字段</param>
        /// <param name="filter">条件</param>
        /// <returns></returns>
        int Update(string Upfilter, string filter);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="filter"></param>
        /// <returns></returns>
        int delete(string filter);

    }
}
